package com.api.service;

import com.api.mapper.TMerchantDetailMapper;
import com.api.model.TMerchantDetail;
import com.api.utils.OrderUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by PC on 2017/7/11.
 */
@Service
public class MerchantDetailService extends BaseService {
    private TMerchantDetailMapper merchantDetailMapper;

    @Autowired
    public void setMerchantDetailMapper(TMerchantDetailMapper merchantDetailMapper) {
        this.merchantDetailMapper = merchantDetailMapper;
        super.baseMapper = merchantDetailMapper;
    }


    public List<TMerchantDetail> selectListByParams(Map<String, Object> params, OrderUtils order) {
        return merchantDetailMapper.selectListByParams(params, order.toString());
    }
}
